package com.teen9g.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Builder
public class Posts implements Serializable {
    @TableId(value = "postId", type = IdType.AUTO)
    private Integer postId;
    private String postCategory;
    private String postTitle;
    private String postAddress;
    private String postContent;
    private String postAuthor;
    private LocalDateTime postDatetime;
}
